package com.todo.biz.application.service;

import com.todo.biz.application.entity.bo.CollectRelationBO;

import java.util.List;

/**
 * (CollectRelation)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 00:19:44
 */
public interface CollectRelationService {

    /**
     * 批量新增集合关联信息
     *
     * @param collectRelationBOList
     * @return
     */
    Boolean batchInsertCollectRelation(List<CollectRelationBO> collectRelationBOList);

    /**
     * 根据集合id删除集合关联
     *
     * @param setId
     * @return 删除数量
     */
    Boolean removeCollectRelationBySetId(Long setId);

    /**
     * 根据集合id查询关联列表
     *
     * @param setId
     * @return
     */
    List<CollectRelationBO> queryCollectRelationBOBySetId(Long setId);

    /**
     * 根据关联id查询对应所属的集合id
     *
     * @param relationId
     * @return
     */
    List<Long> querySetIdListByRelationId(Long relationId);

    /**
     * 根据主键查询关联信息
     *
     * @param id
     * @return
     */
    CollectRelationBO queryCollectRelationBOById(Long id);


}
